<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>labelTest</title>
</head>
<body>
    <div>test</div>
</body>
<script>
    let arr = [1,2,3,4,5,6,7];
    test:
    for(let i=0;i<arr.length;i++){
        let obj = arr[i];
        if(obj == 5){
            //break test;
            continue test;
        }
        console.log(obj);
    }
    console.log("================================");
    block22:
    {
        console.log(1);
        console.log(2);
        console.log(3);
        break block22;
        console.log(4);
        console.log(5);
    }

    outerloop:
        for (var i = 0; i < 10; i++)
        {
            innerloop:
                for (var j = 0; j < 10; j++)
                {
                    if (j > 3)
                    {
                        break;
                    }
                    if (i == 2)
                    {
                        break innerloop;
                    }
                    if (i == 4)
                    {
                        break outerloop;
                    }
                    console.log("i=" + i + " j=" + j + "");
                }
        }



</script>
</html>